fix(fs): avoid directory fsync on Windows publication - #48
Conversation
- avoid opening directory paths on Windows and other non-Unix targets - cover the Windows no-op behavior with a missing-path regression test
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
WalkthroughПлатформенная логика ChangesПубликация каталогов в Windows
Estimated code review effort: 2 (Simple) | ~10 minutes Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
- publish a staged directory into a fresh target in the regression test - document the fsync unsafe invariant
|
Этот PR необходим для исправления IngvarConsulting/unica#264. В поставляемом с Unica Windows runtime ошибка воспроизводится при Изменение в этом PR устраняет именно корневую причину: на Windows каталог больше не открывается как обычный файл, при этом ошибки компиляции, проверки, записи и переименования по-прежнему не подавляются. Для Unica это критичный блокер Windows-сценария сборки внешних обработок: пока PR не слит и не выпущен новый бинарный asset |
Closes #42.
Moves directory open/fsync fully behind cfg(unix), so non-Unix publication succeeds after rename without trying to open the parent directory as a regular file.
Verification:
A cfg(windows) regression uses a guaranteed missing path and must be executed in Windows CI/a Windows host; Windows target stdlib is unavailable locally.
Summary by CodeRabbit